package lab02.test02;

public class Circle {
    public static final double PI=3.1415;
    //属性
    float radii;
    double area;  //面积
    double round; //周长
    //行为

    public void area(){
        area=radii*radii*PI;
        System.out.println("圆的面积为："+area);
    }
    public void round (){
        round=2*radii*PI;
        System.out.println("圆的周长为："+round);
    }

    //构造函数

    /*@Override
    public String toString() {
        return "圆的面积为："+area+"，"+"圆的周长为："+round;
    }*/
}
